using(['layout','accordion','tabs','tree','messager','menu'], function(){
	var MIN_WIDTH=900,MIN_HEIGHT=400;
	
	function isOverflow(target) {
		var _target = $(target), b = false;
		_target.css({"height":"100%","width":"100%"});
		if(_target.height() < MIN_HEIGHT){
			_target.css("height", MIN_HEIGHT);
			b = true;
		}
		if(_target.width() < MIN_WIDTH){
			_target.css("width", MIN_WIDTH);
			b = true;
		}
		if(b) _target.parent().css("overflow", "auto");
		else _target.parent().css("overflow", "hidden");
		return target;
	}
	isOverflow($("#main-layout")).layout({});
});